export default {
	// 设置授权后的用户信息
	setAuthorUserInfo(state, provider) {
		state.passAuthorUserInfo = provider;
		uni.setStorageSync('passAuthorUserInfo', provider)
	},
	removeAuthorUserInfo(state) {
		state.passAuthorUserInfo = null;
		uni.removeStorageSync('passAuthorUserInfo')
	},

	// 设置允许获取手机号后的用户信息
	setPhoneUserInfo(state, provider) {
		state.passPhoneUserInfo = provider;
		uni.setStorageSync('passPhoneUserInfo', provider)
	},
	removePhoneUserInfo(state) {
		state.passPhoneUserInfo = null;
		uni.removeStorageSync('passPhoneUserInfo')
	},

	// 设置用户信息
	setUserInfo(state, provider) {
		state.userInfo = provider;
		uni.setStorageSync('userInfo', provider)
	},
	removeUserInfo(state) {
		state.userInfo = null;
		uni.removeStorageSync('userInfo')
	},
	
	// 设置theme
	setThemeType(state, provider) {
		state.themeType = provider;
		uni.setStorageSync('themeType', provider)
	},
	removeTheme(state) {
		state.themeType = null;
		uni.removeStorageSync('themeType')
	},
}
